﻿<%@page import="java.util.*" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
	Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<link type="text/css" href="/css/POS/GenerateOrder/GenerateOrder.css" rel="stylesheet" />
<div name="generateorder_Block">
	<div class="Orderproductheader">
		<div name="tabletitle_forOrder" class="tabletitle_position"></div>
	</div>
	<div class="groupbtnTablecon">
		<div class="createNewbtn btnTablecon">
			<div class="genOrder_icon btngroupTableicon tbcell"></div>
			<div class="tbcell"><%out.print(resource.getString("POS.Order.genOrder.btnMakeG"));%></div>
		</div>
		</div>
	</div>
	<table><tr style="vertical-align:top;">
		<td>
			<div class="genOrder_orderList">
				<div class="genOrder_orderList_head">
					<div style="margin: 10px 5px 0 20px !important;" class="orderlistIcon orderListhead tbcell"></div>
					<div style="padding: 10px 110px 0 0 !important;" class="tbcell btnStrong"><%out.print(resource.getString("POS.Order.genOrder.orderlest"));%></div>
					<div class="tbcell">
						<div class="createNewbtn"  name="genOrder_btnEdit" >
							<div class="genOrder_icon btnEditicon tbcell"></div>
							<div class="tbcell"><%out.print(resource.getString("POS.Order.genOrder.setting"));%></div>
						</div>
					</div>
				</div>
				<div class="genOrder_orderList_tabledetail">
					<div class="btnStrong" name="genOrder_tablename "> Table </div>
					<div name="genOrder_guestData">
						<div class="tbcell">
							<div class="childInguestData">
								<div  class="genOrder_icon tbcell genOrder_guestName"></div>
								<div class="tbcell" name="genOrder_guestName"></div>
							</div>
							<div class="childInguestData">
								<div class="genOrder_icon genOrder_guestTel tbcell"></div>
								<div class=" tbcell" name="genOrder_guestTel"></div>
							</div>
						</div>
						<div class="tbcell">
							<div class="childInguestData">
								<div class="genOrder_icon genOrder_date tbcell"></div>
								<div class=" tbcell" name="genOrder_date"></div>
							</div>
							<div class="childInguestData">
								<div class="genOrder_icon genOrder_time tbcell"></div>
								<div  class=" tbcell" name="genOrder_time">Time</div>
							</div>
						</div>
					</div>
					<div name="genOrder_totalPrice">
					<span name="totalTitle" class="btnStrong"><%out.print(resource.getString("POS.Order.genOrder.totle"));%> :</span> <span name="totalAry">0</span>
					</div>
				</div>
				<div class="genOrder_orderList_body"></div>
				<div><input type="button" name ="genOrder_btnpayment"value="<%out.print(resource.getString("POS.Order.genOrder.btnpayment"));%>" onclick="openPaymentPage()"></div>
			</div>
		</td>
		<td>
			<div name="genOrder_Orderdetail">
			<div class="genOrder_Orderdetail_head">
				<div class="tbcell genOrder_icon OdetailImg"></div>
				<div class="tbcell">
					<div class="Odetailtaitle btnStrong"><%out.print(resource.getString("POS.Order.genOrder.orderdetail"));%></div>
					<div name="orderNumber">bbbb</div>
					<div ><span><%out.print(resource.getString("POS.Order.genOrder.datetime"));%>:</span><span name="orderDateTime"></span></div>
				</div>
				<div class="tbcell Odetailtail_balance">
					<div class="btnStrong"><%out.print(resource.getString("POS.Order.genOrder.balance"));%></div>
					<div>&nbsp;</div>
					<div name="balanceAmt" class="btnStrong">0</div>
				</div>
			</div>
			<div name="orderDetail">
				<div class="component_loading canceloverlay" style="width: 1048px; z-index:3000;display:none;opacity: 0.4;"></div>
				<div class="genOrder_Orderdetail_folio">
					<div class="Orderdetail_foliotital btnStrong"><span><%out.print(resource.getString("POS.Order.genOrder.FolioNum"));%></span></div>
					<div class="Orderdetail_commandBtn">
						<div class="createNewbtn btnfoliocommand" >
							<div class="genOrder_icon btnPrinticon tbcell"></div>
							<div class="tbcell"><%out.print(resource.getString("POS.Order.genOrder.print"));%></div>
						</div>
						<input type="button" class="btnfoliocommand" style="width:110px" name="POS_updateOrderbtn" onClick="updateOrder()" value="<%out.print(resource.getString("POS.Order.genOrder.btnUporder"));%>"></input>
						<input type="button" class="btnfoliocommand" style="width:130px" value="<%out.print(resource.getString("POS.Order.genOrder.btnCusCharge"));%>" onClick="POScustomCharge()"></input>
				</div>
				<div>
					<table name="table_folio_item">
						<tr name="table_folio_header">
							<td>#</td>
							<td><%out.print(resource.getString("POS.Order.genOrder.Pname"));%></td>
							<td><%out.print(resource.getString("POS.Order.genOrder.Uprice"));%></td>
							<td><%out.print(resource.getString("POS.Order.genOrder.Unit"));%></td>
							<td><%out.print(resource.getString("POS.Order.genOrder.disc"));%></td>
							<td><%out.print(resource.getString("POS.Order.genOrder.tax"));%></td>
							<td><%out.print(resource.getString("POS.Order.price"));%></td>
							<td name="actionWhenUpdate">Action</td>
						</tr>
						<tr name="table_folio_total">
							<td>&nbsp;</td>
							<td>&nbsp;</td>
							<td><span class="folioTotle"><%out.print(resource.getString("POS.Order.genOrder.totle"));%></span></td>
							<td>&nbsp;</td>
							<td><span name="folio_totle_dis" class="disAndtax">0</span></td>
							<td><span name="folio_totle_tax" class="disAndtax">0</span></td>
							<td><span name="folio_totle_price">0</span></td>
							<td name="actionIconWhenUpdate">&nbsp;</td>
						</tr>
					</table>
				</div>
				<div>
					<table style="width:100%"><tr>
						<td style="width:50%">&nbsp;</td>
						<td style="widtth:50%">
							<div class="chSummaryTotal" name="subTotal">
								<span><%out.print(resource.getString("POS.Order.genOrder.subT"));%></span>
								<span class="chRight">0</span>
							</div>
							<div class="chSummaryTotal" name="discount">
								<span><%out.print(resource.getString("POS.payment.orderdetail.discount"));%></span>
								<span class="chRight">0</span>
							</div>
							<div class="chSummaryTotal" name="tax">
								<span><%out.print(resource.getString("POS.Order.genOrder.texes"));%></span>
								<span class="chRight">0</span>
							</div>
							<div class="chSummaryTotal btnStrong" name="total">
								<span><%out.print(resource.getString("POS.Order.genOrder.totalA"));%></span>
								<span class="chRight">0</span>
							</div>
							<div class="chSummaryTotal btnStrong" name="paid">
								<span><%out.print(resource.getString("POS.Order.genOrder.paid"));%></span>
								<span class="chRight">0</span>
							</div>
							<div class="chSummaryTotal btnStrong" name="balance">
								<span><%out.print(resource.getString("POS.Order.genOrder.balance"));%></span>
								<span class="chRight">0</span>
							</div>
						</td>
					</tr></table>
				</div>
				</div>
			</div>
			<div class="genOrder_Orderdetail_history">
				<div class="btnStrong" style="color:#6a6e72"><%out.print(resource.getString("POS.Order.genOrder.hisNote"));%></div>
				<div class="historybox"></div>
				<div>
					<div class="createNewbtn btnHistorygroup tbcell" onclick="clickHistoryTable()">
						<div class="genOrder_icon btnhistoryIcon tbcell"></div>
						<div class="tbcell"><%out.print(resource.getString("POS.Order.genOrder.showAllhis"));%></div>
						<div class="tbcell" name="historyAmt">&nbsp;(0)</div>
					</div>
					<div class="tbcell">&nbsp;</div>
					<div class="createNewbtn btnHistorygroup tbcell" style="width:70px;" onclick="clickAddTask()">
						<div><%out.print(resource.getString("POS.Order.genOrder.addNote"));%></div>
					</div>
				</div>
				<div name="POSNoteArea" style="margin:15px 0;">
					<%out.print(resource.getString("task.Note"));%> :<br/>
					<textarea rows="4" style="margin: 2px; width: 475px; max-width: 475px; max-height: 45px;"></textarea><br/>
					<input type="button" class="btnfoliocommand" value="<%out.print(resource.getString("task.SaveNote"));%>" style="min-width:80px;" onclick="addTaskToOrderList()">
					<input type="button" class="btnfoliocommand" value="<%out.print(resource.getString("simpleLabel.cancel"));%>" style="min-width:80px;"onclick="delete getCurrentTable().DisplayAddTask; displayTask();">
				</div>
				<div name="POSAllHistory" style="margin:15px 0;">
					<table class="historyTable" style="width:100%;">
						<tr>
							<td><%out.print(resource.getString("POS.history.Change"));%></td>
							<td><%out.print(resource.getString("POS.history.Date"));%></td>
							<td><%out.print(resource.getString("POS.history.User"));%></td>
							<td><%out.print(resource.getString("POS.history.Details"));%></td>
						</tr>
					</table>
				</div>
			</div>
			<div class="genOrder_Orderdetail_btnbtm">
				<input type="button" class="btnbtmgroup btnStrong" value="<%out.print(resource.getString("POS.Order.genOrder.printO"));%>">
				<input type="button" class="btnbtmgroup btnStrong" value="<%out.print(resource.getString("POS.Order.genOrder.cancelO"));%>" onclick="cancelOrderFunc();">
				<input type="button" class="btnbtmgroup btnStrong" value="<%out.print(resource.getString("POS.Order.genOrder.newO"));%>" onclick="delete getCurrentTable().pagetitle;switchTab()">
				<input type="button" class="btnbtmgroup btnStrong" value="<%out.print(resource.getString("POS.Order.genOrder.colseTran"));%>" onclick="CloseTransaction()">
			</div>
			</div>
		</td>
	</tr></table>
</div>
   